for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles') do (
     set /a tee+=1 
     set wlanname=%%a
	 set wlanname=!wlanname: =!
	 if "!wlanname!" == "HOSTED_NETWORK_PROFILE" goto skipwlanconnect
)